const {
  $util,
} = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    btop: false,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    $util.request({
      url: 'entry/wxapp/index.index.pbirthday_greeting',
      data: {},
      success: (res) => {
        if (res.errno === 0) {
          this.setData({
            birName: res.name,
            birTxt: res.data,
            birDate: res.date,
            birImg: res.img,
            partyBranch: res.party_branch,
          });
        }
      },
    });
    this.setData({
      btop: wx.systemInfo.model.indexOf('X') > 0 ? true : false,
    });
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
});